package com.blacktry.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blacktry.entity.model.MultiQuestion;
import com.blacktry.entity.model.MultiQuestion;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 选择题题库表 服务类
 * </p>
 *
 * @author blackTry
 * @since 2021-08-10
 */
public interface MultiQuestionService extends IService<MultiQuestion> {
    int insert(MultiQuestion multiQuestion);

    Integer delete(Integer id);

    Integer deleteBatchIds(String[] ids);

    Integer updateOrInsert(MultiQuestion multiQuestion);

    MultiQuestion select(Integer id);

    List<MultiQuestion> selectAll();

    Page<MultiQuestion> selectPage(MultiQuestion multiQuestion, Page<MultiQuestion> multiQuestionPage);

    List<MultiQuestion> findByIdAndType(Integer paperId);
}
